<?php

namespace Lib;

class Config {

    private static $instance;
    private static $vars;
    
    public static function getInstance($ini_file = 'Config/config.ini'){
        if(!self::$instance){
            self::$instance = new Config($ini_file);
        }
        return self::$instance;
    }
    
    private function __construct($ini_file) {
       if(!self::$vars){
            self::$vars = parse_ini_file(SITE_PATH . $ini_file, TRUE);
       }
    }
    
    public function get($section){
        return self::$vars[$section];
    }

}

?>
